import {simpleGet} from "@/utils/request";
import {useAreaStore} from "@/store/area";

export default {
    getChildrenTree:async () => {
        const areaStore = useAreaStore()
        if (!areaStore.childrenTree){
            const {tree} = await simpleGet("/index.site/areaAllChildrenTree")
            areaStore.childrenTree = tree
        }
        return areaStore.childrenTree
    }
}

